
#ifndef TERRAINCREATER_H
#define TERRAINCREATER_H

#include <BHandler>
#include <BTerrain>

using namespace BWE;

class TerrainCreater : public BHandler
{
public:
	TerrainCreater();
	~TerrainCreater();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

protected:
	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual void updateEvent(const BEvent& event);

	virtual bool mousePressEvent(const BMouseEvent& mouseEvent);
	virtual bool mouseReleaseEvent(const BMouseEvent& mouseEvent);
	virtual bool mouseMoveEvent(const BMouseEvent& mouseEvent);

private:
	BHolder<BTerrain>		_terrain;
	float					_radius;
	int						_count;
	BVector					_points[2];
	BVector					_center;
};

#endif